/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  background-color: #f3f4f6;
  font-family: Arial, sans-serif;
}

/* 侧边栏样式 */
aside.w-64 {
  width: 16rem;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

aside.w-64 a.text-2xl {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

aside.w-64 ul.space-y-2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

aside.w-64 ul.space-y-2 li a {
  display: block;
  color: #4b5563;
  transition: color 0.3s ease;
}

aside.w-64 ul.space-y-2 li a:hover {
  color: #1f2937;
}

/* 主内容区样式 */
div.flex-1 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏样式 */
header.bg-white {
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.bg-white div.flex.items-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header.bg-white input.border {
  border-width: 1px;
  border-color: #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

header.bg-white input.border:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

header.bg-white button.bg-blue-500 {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

header.bg-white button.bg-blue-500:hover {
  background-color: #2563eb;
}

header.bg-white div.flex.space-x-4 {
  display: flex;
  gap: 1rem;
}

header.bg-white div.flex.space-x-4 a {
  color: #4b5563;
  transition: color 0.3s ease;
}

header.bg-white div.flex.space-x-4 a:hover {
  color: #1f2937;
}

header.bg-white div.flex.space-x-4 a.bg-green-500 {
  background-color: #22c55e;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

header.bg-white div.flex.space-x-4 a.bg-green-500:hover {
  background-color: #16a34a;
}

/* 主要内容样式 */
main.p-4 {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 标签栏样式 */
main.p-4 div.flex.space-x-2 {
  display: flex;
  gap: 0.5rem;
}

main.p-4 div.flex.space-x-2 a.bg-blue-500 {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

main.p-4 div.flex.space-x-2 a.bg-white {
  background-color: #ffffff;
  color: #4b5563;
  border-width: 1px;
  border-color: #d1d5db;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

main.p-4 div.flex.space-x-2 a.bg-white:hover {
  background-color: #f3f4f6;
}

/* 资讯头条样式 */
main.p-4 section h2.text-xl {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

main.p-4 section div.flex.space-x-4 {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

main.p-4 section div.flex.space-x-4 div.flex-shrink-0 {
  flex-shrink: 0;
  width: 16rem;
  background-color: #ffffff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

main.p-4 section div.flex.space-x-4 div.flex-shrink-0 img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

main.p-4 section div.flex.space-x-4 div.flex-shrink-0 p {
  color: #4b5563;
}

main.p-4 section a.text-blue-500 {
  color: #3b82f6;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
  margin-top: 0.5rem;
  display: block;
}

main.p-4 section a.text-blue-500:hover {
  text-decoration: underline;
}

/* 资讯列表样式 */
main.p-4 section ul.space-y-2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

main.p-4 section ul.space-y-2 li {
  background-color: #ffffff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

/* 开源项目样式 */
main.p-4 section div.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

main.p-4 section div.grid div.bg-white {
  background-color: #ffffff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

main.p-4 section div.grid div.bg-white img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

main.p-4 section div.grid div.bg-white h3.text-lg {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f2937;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-2 {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-2 span.bg-gray-200 {
  background-color: #e5e7eb;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

main.p-4 section div.grid div.bg-white a.text-blue-500 {
  color: #3b82f6;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
  margin-top: 0.5rem;
  display: block;
}

main.p-4 section div.grid div.bg-white a.text-blue-500:hover {
  text-decoration: underline;
}

/* 直播样式 */
main.p-4 section div.grid div.bg-white div.flex.space-x-4 {
  display: flex;
  gap: 1rem;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-4 img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-4 div h3.text-lg {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f2937;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-4 div p {
  color: #4b5563;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-4 div a.bg-blue-500 {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
  display: inline-block;
}

main.p-4 section div.grid div.bg-white div.flex.space-x-4 div a.bg-blue-500:hover {
  background-color: #2563eb;
}

/* 右侧广告栏样式 */
aside.w-64.bg-white {
  width: 16rem;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

aside.w-64.bg-white div.relative {
  position: relative;
}

aside.w-64.bg-white div.relative img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

aside.w-64.bg-white div.relative a.absolute {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

aside.w-64.bg-white div.relative a.absolute:hover {
  background-color: #f3f4f6;
}    